/*  1:   */ package org.jetbrains.lang.manifest.header;
/*  2:   */ 
/*  3:   */ import org.jetbrains.annotations.NotNull;
/*  4:   */ 
/*  5:   */ public class HeaderNameMatch
/*  6:   */   implements Comparable<HeaderNameMatch>
/*  7:   */ {
/*  8:   */   private final int a;
/*  9:   */   private final String b;
/* 10:   */   
/* 11:   */   public HeaderNameMatch(int paramInt, @NotNull String paramString)
/* 12:   */   {
/* 13:41 */     this.a = paramInt;
/* 14:42 */     this.b = paramString;
/* 15:   */   }
/* 16:   */   
/* 17:   */   public int getDistance()
/* 18:   */   {
/* 19:46 */     return this.a;
/* 20:   */   }
/* 21:   */   
/* 22:   */   public String getHeaderName()
/* 23:   */   {
/* 24:50 */     return this.b;
/* 25:   */   }
/* 26:   */   
/* 27:   */   public int compareTo(@NotNull HeaderNameMatch paramHeaderNameMatch)
/* 28:   */   {
/* 29:58 */     if (paramHeaderNameMatch == null) {
/* 30:58 */       throw new IllegalArgumentException(String.format("Argument %s for @NotNull parameter of %s.%s must not be null", new Object[] { "0", "org/jetbrains/lang/manifest/header/HeaderNameMatch", "compareTo" }));
/* 31:   */     }
/* 32:58 */     return getDistance() - paramHeaderNameMatch.getDistance();
/* 33:   */   }
/* 34:   */   
/* 35:   */   public boolean equals(Object paramObject)
/* 36:   */   {
/* 37:63 */     if (this == paramObject) {
/* 38:64 */       return true;
/* 39:   */     }
/* 40:66 */     if ((paramObject == null) || (getClass() != paramObject.getClass())) {
/* 41:67 */       return false;
/* 42:   */     }
/* 43:70 */     HeaderNameMatch localHeaderNameMatch = (HeaderNameMatch)paramObject;
/* 44:   */     
/* 45:72 */     return (this.a == localHeaderNameMatch.a) && (this.b.equals(localHeaderNameMatch.b));
/* 46:   */   }
/* 47:   */   
/* 48:   */   public int hashCode()
/* 49:   */   {
/* 50:77 */     int i = this.a;
/* 51:78 */     i = 31 * i + this.b.hashCode();
/* 52:79 */     return i;
/* 53:   */   }
/* 54:   */ }


/* Location:           E:\idea\
 * Qualified Name:     org.jetbrains.lang.manifest.header.HeaderNameMatch
 * JD-Core Version:    0.7.0.1
 */